﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using ET.Score.Service.Dtos;
using ET.Score.Service.Dtos.Ats;
namespace ET.Score.Service.Interfaces
{
    /// <summary>
    /// 调度服务教研端应用接口
    /// </summary>
     [ServiceContract]
   public interface IDispatcherManageService
    {

         [OperationContract]
         List<UserTestInfo> GetCurrentDispatcherTaskList();
          /// <summary>
        /// 调度任务下发,返回每个任务的发送成功与否
        /// </summary>
        /// ///
         [OperationContract]
         List<bool> SendDispatcherTask(List<UserTestInfo> usertestlist);
         /// <summary>
         /// 增加任务信息
         /// </summary>
         /// <param name="usertestlist"></param>
         /// <returns></returns>
         [OperationContract]
         List<bool> AddDispatcherTask(List<UserTestInfo> usertestlist);
         /// <summary>
         /// 获取用户操作日志
         /// </summary>
         /// <returns></returns>
         [OperationContract]
         List<OperLog> GetCurrentOperLog();
         /// <summary>
         /// 删除某个用户调度考核任务
         /// </summary>
         /// <param name="usertest"></param>
         [OperationContract(IsOneWay = true)]
         void RemoveDispatcherTask(UserTestInfo usertest);
         /// <summary>
         /// 删除某用户的某条任务
         /// </summary>
         /// <param name="testid"></param>
         /// <param name="userid"></param>
         [OperationContract(IsOneWay = true)]
         void RemoveSingleTask(int testid, long TestGUID);
         [OperationContract]
         List<Int16> GetTrainList();
       
       
    }
}
